//自定义指令集实现登录验证
import Vue from 'vue'

Vue.directive('login', {
  bind(el, binding, vNode) {
    el.onclick = event => {
      let vm = vNode.context;
      event.stopPropagation();


      binding.value();
      console.log(vNode.context.$store);
      console.log(vNode.context.$route.name)
    }
  },
  unbind(el, binding, vNode) {

  }
});
